#!/bin/bash
echo "Starting Gate-Level Simulation..."
cd $(dirname $0)/..
make full_gls

if grep -q "ERROR" gls_run.log; then
  echo "GLS FAILED"
  exit 1
else
  echo "GLS PASSED"
  echo "Report: GLS_REPORT.md"
  exit 0
fi